<?php
$fb = new FormBuilder('seminar', $seminar);
$fb->setAction('/admin/seminarWizard/next');
$fb->combobox('language_code', $languageOptions)->labelKey('seminarWizard.language')->hint(text::get('seminarWizard.language-hint'))->required();
$fb->spacer();
$fb->text('name')->required();
$fb->textarea('description')->required();
$fb->spacer();
$fb->date('begin_date')->required();
$fb->time('begin_time')->required();
$fb->spacer();
$fb->date('end_date')->required();
$fb->time('end_time')->required();
$fb->date('registration_deadline')->hint()->required();
$fb->spacer();
$fb->yesNoBox('singleDaysAllowed')->labelKey('seminarWizard.singleDaysAllowed')->noEmptyOption()->required()->hint();
$fb->write();
